<template>
  <div class="my-container">
    <div class="bg">
      <img src="../../assets/banner.png" alt="" />
      <div class="login">
        <img src="../../assets/mobile.png" alt="" />
        <span>登录 / 注册</span>
      </div>
    </div>
    <div class="bg">
      <img src="../../assets/banner.png" alt="" />
      <div class="info">
        <div class="info-box1">
          <div class="left">
            <img src="../../assets/haizi.png" alt="" />
            <span>有点333</span>
          </div>
          <div class="right">
            <van-button round size="small">编辑资料</van-button>
          </div>
        </div>
        <div class="info-box2">
          <van-grid :border="false">
            <van-grid-item>
              <div>12344</div>
              <div>头条</div>
            </van-grid-item>
            <van-grid-item>
              <div>12344</div>
              <div>头条</div>
            </van-grid-item>
            <van-grid-item>
              <div>12344</div>
              <div>头条</div>
            </van-grid-item>
            <van-grid-item>
              <div>12344</div>
              <div>头条</div>
            </van-grid-item>
          </van-grid>
        </div>
      </div>
    </div>

    <div class="nav">
      <van-grid :column-num="2">
        <van-grid-item class="red" icon="star-o" text="收藏" />
        <van-grid-item class="red" icon="underway-o" text="历史" />
      </van-grid>
    </div>
    <div class="list">
      <van-cell title="消息通知" is-link />
      <van-cell title="小智同学" is-link />
    </div>
    <div class="logout">
      <van-button class="redddd" block> 退出登录</van-button>
    </div>
  </div>
</template>

<script>
export default {};
</script>
<style scoped lang="less">
.my-container {
  .bg {
    position: relative;
    > img {
      width: 100%;
      display: block;
    }
    .login {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      flex-direction: column;
      img {
        width: 120px;
        margin: 10px auto;
      }
      span {
        font-size: 16px;
        color: #fff;
      }
    }
    .info {
      position: absolute;
      bottom: 0;
      width: 100%;
      .info-box1 {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px 60px;
        box-sizing: border-box;
        .left {
          display: flex;
          align-items: center;
          img {
            width: 120px;
            border: 3px solid #fff;
            border-radius: 50%;
          }
          span {
            font-size: 18px;
            color: #fff;
            padding-left: 10px;
          }
        }
        /deep/ .right {
          font-size: 18px;
          color: #000;
        }
      }
      /deep/.info-box2 {
        // padding: 20px;
        .van-grid-item__content {
          font-size: 16px;
          background-color: rgba(0, 0, 0, 0);
          color: #fff;
        }
      }
    }
  }
  /deep/ .logout {
    padding-bottom: 500px;
    background-color: #fff;
  }
  .red {
    color: red;
  }
  .redddd {
    color: #d86262;
  }
}
</style>
